package com.cdtu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 *
 * @TableName message
 */
@TableName(value ="message")
@Data
public class Message implements Serializable {
    /**
     *
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 内容

     */
    private String content;

    /**
     *
     */
    private String title;

    /**
     *
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date time;

    /**
     * 发布人
     */
    private Long userId;

    /**
     *
     */
    private Integer status;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
